from basic.UIParent import UIParent
from basic.utils.asserts import asserts
from commen.page.ann.trendsPage import trendsPage


class TrendsCase(UIParent):

    # @classmethod
    # def test_two(self):
    #     IndexPage.clickSearch();
    #     keyevent("BACK")

    @classmethod
    def test_trendsGover(self):
        '''发现校验:政务民生列表有数据显示'''

        # 点击发现
        trendsPage.clickTrends()
        # 点击政务民生
        trendsPage.clickGover()
        data = trendsPage.getData()
        r = []
        asserts.not_equal(r, data, "发现校验:政务民生列表有数据显示")

    @classmethod
    def test_trendsLife(self):
        '''发现校验:城市生活列表有数据显示'''

        # 点击发现
        trendsPage.clickTrends()
        # 点击城市生活
        trendsPage.clickLife()
        Citydata = trendsPage.getCityData()
        l = []
        asserts.not_equal(l, Citydata, "发现校验:城市生活列表有数据显示")
